import request from '@/utils/request'

export const uploadUrl = process.env.VUE_APP_BASE_API + "/api/dopicUp"

export function upload(data){
  return request({
    url: '/api/dopicUp',
    method: 'post',
    data
  })
}

export function insertHC(data) {
  //添加耗材信息设置
  return request({
    url: '/ht/insertHC',
    method: 'post',
    data
  })
}

export function delHC(data) {
  //删除耗材信息设置
  return request({
    url: '/ht/delHC',
    method: 'post',
    data
  })
}

export function updatetHC(data) {
  //更新耗材信息设置
  return request({
    url: '/ht/updatetHC',
    method: 'post',
    data
  })
}

export function showHC(data) {
  //查询耗材信息设置
  return request({
    url: '/ht/showHC',
    method: 'post',
    data
  })
}

export function showAllZYbyStatus(data) {
  //后台查询所有指定状态转运订单(status 等待打包/打包中/已打包待付款/已发货/已签收)
  return request({
    url: '/ht/showAllZYbyStatus',
    method: 'post',
    data
  })
}

export function getAllAdmin(data) {
  //后台查询所有管理员信息
  return request({
    url: '/ht/getAllAdmin',
    method: 'post',
    data
  })
}

export function deladmin(data) {
  //后台删除单条管理员信息
  return request({
    url: '/ht/deladmin',
    method: 'post',
    data
  })
}

export function updataAdmin(data) {
  //后台更新单条管理员信息
  return request({
    url: '/ht/updataAdmin',
    method: 'post',
    data
  })
}

export function doRegister(data) {
  //后台注册管理员帐号
  return request({
    url: '/ht/doRegister',
    method: 'post',
    data
  })
}

export function insterWebNews(data) {
  //后台添加公告
  return request({
    url: '/ht/insterWebNews',
    method: 'post',
    data
  })
}

export function delWebNews(data) {
  //后台删除公告
  return request({
    url: '/ht/delWebNews',
    method: 'post',
    data
  })
}

export function updataWebNews(data) {
  //后台更新公告
  return request({
    url: '/ht/updataWebNews',
    method: 'post',
    data
  })
}

export function getWebmsgs(data) {
  //获取所有公告
  return request({
    url: '/api/getWebmsgs',
    method: 'post',
    data
  })
}

export function getalltbdata(data) {
  //后台获取图表数据
  return request({
    url: '/ht/getalltbdata',
    method: 'post',
    data
  })
}

export function getalldata(data) {
  //后台获取统计数据-克隆
  return request({
    url: '/ht/getalldata',
    method: 'post',
    data
  })
}

export function AllHJ(data) {
  //后台查询货架
  return request({
    url: '/ht/AllHJ',
    method: 'post',
    data
  })
}

export function insertHJ(data) {
  //后台添加货架
  return request({
    url: '/ht/insertHJ',
    method: 'post',
    data
  })
}

export function updateHJ(data) {
  //后台更新货架
  return request({
    url: '/ht/updateHJ',
    method: 'post',
    data
  })
}

export function delectHJ(data) {
  //后台删除货架
  return request({
    url: '/ht/delectHJ',
    method: 'post',
    data
  })
}

export function insertDJ(data) {
  //后台添加等级设置
  return request({
    url: '/ht/insertDJ',
    method: 'post',
    data
  })
}

export function delDJ(data) {
  //后台删除等级设置
  return request({
    url: '/ht/delDJ',
    method: 'post',
    data
  })
}

export function updatetDJ(data) {
  //后台更新等级设置
  return request({
    url: '/ht/updatetDJ',
    method: 'post',
    data
  })
}

export function showDJ(data) {
  //后台查询等级配置
  return request({
    url: '/ht/showDJ',
    method: 'post',
    data
  })
}

export function insertFZ(data) {
  //后台添加分组设置
  return request({
    url: '/ht/insertFZ',
    method: 'post',
    data
  })
}

export function delFZ(data) {
  //后台删除分组设置
  return request({
    url: '/ht/delFZ',
    method: 'post',
    data
  })
}

export function updatetFZ(data) {
  //后台更新分组设置
  return request({
    url: '/ht/updatetFZ',
    method: 'post',
    data
  })
}

export function showFZ(data) {
  //后台查询分组配置
  return request({
    url: '/ht/showFZ',
    method: 'post',
    data
  })
}

export function showALLluser(data) {
  //查询所有会员信息
  return request({
    url: '/ht/showALLluser',
    method: 'post',
    data
  })
}

export function deluser(data) {
  //删除指定会员信息
  return request({
    url: '/ht/deluser',
    method: 'post',
    data
  })
}

export function updatetusersFZ(data) {
  //后台更新用户分组信息
  return request({
    url: '/ht/updatetusersFZ',
    method: 'post',
    data
  })
}

export function updateuser(data) {
  //后台更新帐号信息
  return request({
    url: '/ht/updateuser',
    method: 'post',
    data
  })
}

export function changeBG(data) {
  //后台修改包裹信息
  return request({
    url: '/ht/changeBG',
    method: 'post',
    data
  })
}

export function delZYorder(data) {
  //后台删除单条转运订单
  return request({
    url: '/ht/delZYorder',
    method: 'post',
    data
  })
}

export function showALLbgqd(data) {
  //查询所有包裹清点
  return request({
    url: '/ht/showALLbgqd',
    method: 'post',
    data
  })
}

export function updatebaoguoqingdian(data) {
  //后台更新单条包裹清点
  return request({
    url: '/ht/updatebaoguoqingdian',
    method: 'post',
    data
  })
}

export function delbaoguoqingdian(data) {
  //后台删除单条包裹清点
  return request({
    url: '/ht/delbaoguoqingdian',
    method: 'post',
    data
  })
}

export function delbaoguotuihuo(data) {
  //后台删除单条包裹退货
  return request({
    url: '/ht/delbaoguotuihuo',
    method: 'post',
    data
  })
}

export function updatebaoguotuihuo(data) {
  //后台更新单条包裹退货
  return request({
    url: '/ht/updatebaoguotuihuo',
    method: 'post',
    data
  })
}

export function showALLbgth(data) {
  //查询所有包裹退货
  return request({
    url: '/ht/showALLbgth',
    method: 'post',
    data
  })
}

export function delbaoguofwqq(data) {
  //后台删除单条服务请求
  return request({
    url: '/ht/delbaoguofwqq',
    method: 'post',
    data
  })
}

export function updatebaoguofwqq(data) {
  //后台更新单条服务请求
  return request({
    url: '/ht/updatebaoguofwqq',
    method: 'post',
    data
  })
}

export function showALLfwqq(data) {
  //查询所有包裹服务请求
  return request({
    url: '/ht/showALLfwqq',
    method: 'post',
    data
  })
}

export function showALLlpdc(data) {
  //查询所有理赔调查
  return request({
    url: '/ht/showALLlpdc',
    method: 'post',
    data
  })
}

export function delbaoguolpdc(data) {
  //后台删除单条理赔调查
  return request({
    url: '/ht/delbaoguolpdc',
    method: 'post',
    data
  })
}

export function updatebaoguolpdc(data) {
  //后台更新单条理赔调查
  return request({
    url: '/ht/updatebaoguolpdc',
    method: 'post',
    data
  })
}

export function doLogin(data) {
  //后台管理员登陆
  return request({
    url: '/ht/doLogin',
    method: 'post',
    data
  })
}

export function searchOutOrder(data) {
  //后台查询发出包裹数据
  return request({
    url: '/ht/searchOutOrder',
    method: 'post',
    data
  })
}

export function getAlllbPic(data) {
  //后台获取所有轮播图
  return request({
    url: '/ht/getAlllbPic',
    method: 'post',
    data
  })
}

export function dellbPic(data) {
  //后台删除单条轮播图
  return request({
    url: '/ht/dellbPic',
    method: 'post',
    data
  })
}

export function updatelbPic(data) {
  //后台更新单条轮播图
  return request({
    url: '/ht/updatelbPic',
    method: 'post',
    data
  })
}

export function insterlbPic(data) {
  //后台添加单条轮播图
  return request({
    url: '/ht/insterlbPic',
    method: 'post',
    data
  })
}

export function getAllBG(data) {
  //获取全部包裹预报信息
  return request({
    url: '/ht/getAllBG',
    method: 'post',
    data
  })
}

export function updateBG(data) {
  //后台更新单条包裹
  return request({
    url: '/ht/updateBG',
    method: 'post',
    data
  })
}

export function delBG(data) {
  //后台删除单条包裹
  return request({
    url: '/ht/delBG',
    method: 'post',
    data
  })
}

export function doBGUp(data) {
  //后台添加包裹
  return request({
    url: '/ht/doBGUp',
    method: 'post',
    data
  })
}

export function searchFZuser(data) {
  //后台查询指定分组用户
  return request({
    url: '/ht/searchFZuser',
    method: 'post',
    data
  })
}

export function updateZYorder(data) {
  //后台更新转运订单数据
  return request({
    url: '/ht/updateZYorder',
    method: 'post',
    data
  })
}

export function doZYorder(data) {
  //后台提交转运订单
  return request({
    url: '/ht/doZYorder',
    method: 'post',
    data
  })
}

export function updateZyStatus(data) {
  //后台更新转运订单状态
  return request({
    url: '/ht/updateZyStatus',
    method: 'post',
    data
  })
}

export function getAlldgfw(data) {
  //后台获取首页代购服务配置
  return request({
    url: '/ht/getAlldgfw',
    method: 'post',
    data
  })
}

export function deldgfw(data) {
  //后台删除单条代购服务配置
  return request({
    url: '/ht/deldgfw',
    method: 'post',
    data
  })
}

export function updatedgfw(data) {
  //后台更新单条代购服务配置
  return request({
    url: '/ht/updatedgfw',
    method: 'post',
    data
  })
}

export function insterdgfw(data) {
  //后台添加代购服务配置
  return request({
    url: '/ht/insterdgfw',
    method: 'post',
    data
  })
}

export function insterfwxm(data) {
  //后台添加服务项目配置
  return request({
    url: '/ht/insterfwxm',
    method: 'post',
    data
  })
}

export function getAllfwxm(data) {
  //后台获取首页服务项目配置
  return request({
    url: '/ht/getAllfwxm',
    method: 'post',
    data
  })
}

export function delfwxm(data) {
  //后台删除单条服务项目配置
  return request({
    url: '/ht/delfwxm',
    method: 'post',
    data
  })
}

export function updatefwxm(data) {
  //后台更新单条服务项目配置
  return request({
    url: '/ht/updatefwxm',
    method: 'post',
    data
  })
}

export function showwumingjianDetails(data) {
  //后台查看无名件明细
  return request({
    url: '/ht/showwumingjianDetails',
    method: 'post',
    data
  })
}

export function showdaidabaoDetails(data) {
  //后台查看待打包明细
  return request({
    url: '/ht/showdaidabaoDetails',
    method: 'post',
    data
  })
}

export function showbaoguoidDetails(data) {
  //后台包裹管理id查询
  return request({
    url: '/ht/showbaoguoidDetails',
    method: 'post',
    data
  })
}

export function showbaoguoqingdianDetails(data) {
  //后台查看包裹清点待处理明细
  return request({
    url: '/ht/showbaoguoqingdianDetails',
    method: 'post',
    data
  })
}

export function showfuwuqingqiuDetails(data) {
  //后台查看服务请求待处理明细
  return request({
    url: '/ht/showfuwuqingqiuDetails',
    method: 'post',
    data
  })
}

export function showbaoguofenxiangDetails(data) {
  //后台查看包裹分箱待处理明细
  return request({
    url: '/ht/showbaoguofenxiangDetails',
    method: 'post',
    data
  })
}

export function showUseridDetails(data) {
  //会员信息查询 选填一项（vipid/帐号 ）
  return request({
    url: '/ht/showUseridDetails',
    method: 'post',
    data
  })
}

export function showZyOrderidDetails(data) {
  //后台转运订单管理id查询
  return request({
    url: '/ht/showZyOrderidDetails',
    method: 'post',
    data
  })
}

export function changeUserNotes(data) {
  //后台修改会员备注
  return request({
    url: '/ht/changeUserNotes',
    method: 'post',
    data
  })
}

export function changeBalance(data) {
  //后台修改余额
  return request({
    url: '/ht/changeBalance',
    method: 'post',
    data
  })
}

export function searchHdfkbyStatus(data) {
  //后台查询货到付款_指定状态 选填一项（待付款，已拒签，已付款，无记录）
  return request({
    url: '/ht/searchHdfkbyStatus',
    method: 'post',
    data
  })
}

export function updatehuodaofukuan(data) {
  //后台更新单条货到付款
  return request({
    url: '/ht/updatehuodaofukuan',
    method: 'post',
    data
  })
}

export function delhuodaofukuan(data) {
  //后台删除单条货到付款
  return request({
    url: '/ht/delhuodaofukuan',
    method: 'post',
    data
  })
}

export function searchHdfk(data) {
  //后台搜索查询货到付款 选填一项（OverseasCourierNumber/vipid）
  return request({
    url: '/ht/searchHdfk',
    method: 'post',
    data
  })
}
